<%@page import="net.sf.jsr107cache.*"%>
<%@page import="java.util.*"%>
<%

Cache caches=null;

try {
    caches = CacheManager.getInstance().getCacheFactory().createCache(Collections.emptyMap());
} catch (CacheException e) {
   e.printStackTrace();
   
}

if(caches!=null&&caches.containsKey("lastPings"))
{
	ArrayList<String[]> lastUpdateDomain = (ArrayList<String[]>)caches.get("lastPings");
	System.out.print(lastUpdateDomain.size());
%>

<hr size="1" class="hr"/>
<h2 class="menu">New sites</h2>
<ul class="featured">
	<% 
		if(lastUpdateDomain.size() > 0)
		{
		for(String[] domainName : lastUpdateDomain) 
		{
			String string = domainName[0];
	%>
			<li><a href="/domain/<%=string %>" title="<%=string %>"><%=string %></a></li>
	<%
		}
		}
	%>
</ul>
<%
}
%>